package com.sq.partner.manager.dao.impl;

import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.FacadeAppFormExtendDao;
import com.sq.partner.manager.mybatis.model.FacadeAppFormExtend;

/**
 * 投保扩展表Dao实现类
 * 
 * @author zhouxiuxiu
 *
 */
@Repository
public class FacadeAppFormExtendDaoImpl extends BaseDaoImpl implements
        FacadeAppFormExtendDao {

    /**
     * 保存投保单扩展信息
     * 
     * @param extend
     * @throws Exception
     */
    @Override
    public void saveFacadeAppFormExtend(FacadeAppFormExtend extend)
            throws Exception {
        this.add("insertFacadeAppFormExtend", extend);
    }

    /**
     * 修改投保单扩展信息
     * 
     * @param driver
     * @throws Exception
     */
    @Override
    public void updateFacadeAppFormExtend(FacadeAppFormExtend extend)
            throws Exception {
        this.update("updateFacadeAppFormExtendNotNull", extend);
    }

    /**
     * 根据投保单号查询投保单扩展信息（新意健险）
     * 
     * @param appNo
     * @return
     * @throws Exception
     */
    @Override
    public FacadeAppFormExtend queryFacadeAppFormExtend(String appNo)
            throws Exception {
        return (FacadeAppFormExtend) this.query(
                "queryFacadeAppFormExtendByAppNo", appNo);
    }
    @Override
    public void deleteAppFormExtendByAppNo(String appNo) throws Exception {
        this.delete("deleteAppFormExtendByAppNo", appNo);
    }
}
